#include <iostream>
#include <string>
#include <sstream>

using namespace std;

int main() 
{
    string s;
    cin >> s;

    size_t e_pos = s.find('e');
    string s1 = s.substr(0, e_pos);
    string s2 = s.substr(e_pos + 1);

    size_t dot_pos = s1.find('.');
    string a = s1.substr(0, dot_pos);
    string d = s1.substr(dot_pos + 1);

    int b = stoi(s2);
    int total_length = a.length() + d.length();
    int d_pos = dot_pos + b;

    string s3, s4;
   // cout << a << " " << d << endl;
    if (d_pos <= 0) 
    {
        s4 = string(-d_pos, '0') + a + d; 
    } 
     else if (d_pos >= total_length)
    {
        s3 = a + d + string(d_pos - total_length, '0'); 
    }
    else 
    {
        s3 = a + d.substr(0, d_pos - a.length());
        s4 = d.substr(d_pos - a.length());
    }


    if (s3.empty() || s3 == "0")
    {
        s3 = "0";
    } else {
        s3.erase(0, min(s3.find_first_not_of('0'), s3.size() - 1));
    }

    if (!s4.empty()) {
        s4.erase(s4.find_last_not_of('0') + 1);
    }

    if (s4.empty()) {
        cout << s3 << endl; 
    } else {
        cout << s3 << "." << s4 << endl;
    }

    return 0;
}
